package com.hikealoha.hikealoha;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.text.method.ScrollingMovementMethod;
import android.widget.Button;
import android.widget.TextView;


public class TrailDetailJava extends Activity{

    public final static String EXTRA_MESSAGE = "com.hikealoha.hikealoha.MESSAGE";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.trail_detail_layout);
        TextView text;
        ImageView map;
        map = (ImageView) findViewById(R.id.default_oahu_map);
        text = (TextView) findViewById(R.id.textBox);
        text.setMovementMethod(new ScrollingMovementMethod());
        Button  info = (Button) findViewById(R.id.infoButton);
        Button parking = (Button) findViewById(R.id.parkingButton);
        Button photos = (Button) findViewById(R.id.photosButton);

        //map.setOnClickListener(new View.OnClickListener() {
        //  @Override
        //public void onClick(View v) {
        //  text.setText("Map button works!");
        //}
        // });
    }

    public void sendMessageToMap(View v) {
        Intent intent = new Intent(this, MapActivity.class);
        String message = "50, 50";
        intent.putExtra(EXTRA_MESSAGE, message);
        startActivity(intent);
    }

    public void sendMessageToWaypt(View v) {
        Intent intent = new Intent(this, WaypointActivity.class);
        String message = "50, 50";
        intent.putExtra(EXTRA_MESSAGE, message);
        startActivity(intent);
    }
}
